#函数递归
#累加求和：求1到n之间的求和
def sum_numbers(num):
    if num==1:
        return 1
    return num+sum_numbers(num-1)

num=int(input("请输入num数："))
result=sum_numbers(num)
print(result)
